var e = require("../../@babel/runtime/helpers/interopRequireDefault"), t = e(require("../../@babel/runtime/regenerator")), n = require("../../@babel/runtime/helpers/asyncToGenerator"), r = new (e(require("../../http/message")).default)();

Page({
    data: {
        messageList: []
    },
    onLoad: function(e) {},
    getMessageList: function() {
        var e = this;
        return n(t.default.mark(function n() {
            var a;
            return t.default.wrap(function(t) {
                for (;;) switch (t.prev = t.next) {
                  case 0:
                    return t.next = 2, r.messageList();

                  case 2:
                    a = t.sent, e.setData({
                        messageList: a.data
                    });

                  case 4:
                  case "end":
                    return t.stop();
                }
            }, n);
        }))();
    },
    onReady: function() {},
    onShow: function() {
        this.getMessageList();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {}
});